from sqlalchemy import Column, ForeignKey
from sqlalchemy.types import Integer
from sqlalchemy.orm import relationship
from __init__ import Base

class GridGroup(Base):
    
    __tablename__ = "gridgroup"

    gridid = Column(Integer, ForeignKey('grids.id'), primary_key=True)
    groupid = Column(Integer, ForeignKey('groups.id'), primary_key=True)

    group = relationship("Groups")

    def __init__(self, gridid, groupid):
        self.gridid = gridid
        self.groupid = groupid
